const teacherList = ['张老师', '李老师', '王老师', '赵老师', '钱老师', '孙老师', '周老师', '吴老师', '郑老师', '冯老师'];
const courseNameList = ['数学', '语文', '英语', '物理', '化学', '生物', '地理', '历史', '政治', '体育'];
const classRoomList = ['教学楼A401', '教学楼B302', '教学楼C203', '教学楼D104', '教学楼E505'];
// const weekList = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16];
// const dayList = [1, 2, 3, 4, 5, 6, 7];
// const sectionList = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10];

export const generateData = () => {
  const data = [];
  for (let i = 0; i <= 10; i++) {
    for(let j =1; j<=7;j++){

      const teacher = teacherList[Math.floor(Math.random() * teacherList.length)];
      const courseName = courseNameList[Math.floor(Math.random() * courseNameList.length)];
      const classRoom = classRoomList[Math.floor(Math.random() * classRoomList.length)];
      // const week = weekList[Math.floor(Math.random() * weekList.length)];
      const week = 1;
      // const day = dayList[Math.floor(Math.random() * dayList.length)];
      const day = j
      // const section = sectionList[Math.floor(Math.random() * sectionList.length)];
      const section = i
      data.push({
        teacher,
        courseName,
        classRoom,
        week,
        day,
        section,
      });
    }
  }
  return data;
};
